<div class="container-fluid" style="margin-top: 10px;">
    <div class="row">

        <div class="col-sm-12">
            <label>变动设备</label>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>变动单据号</th>
                    <th>设备编号</th>
                    <th>设备名称</th>
                    <th>隶属单位</th>
                </tr>
                </thead>
                <tbody>
                {volist name='alterList' id='vo'}
                <tr>
                    <td>{$vo.RECEIPT_NO}</td>
                    <td>{$vo.FACILITY_NO}</td>
                    <td>{$vo.FACILITY}</td>
                    <td>{$vo.BELONG}</td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>

        <div class="col-sm-12">
            <label>变动表单</label>
            <div class="col-sm-12" style="border: 1px solid #ddd;padding: 10px 0px">
                <form id="alterForm" method="post" action="addAlter">

                    {:form('text',['title'=>'变动类型','value'=>$alterList[0]['ALTERTYPE'] ])}
                    {:form('text',['title'=>'变动时间','value'=>$alterList[0]['ALTER_DATE'] ])}
                    {:form('text',['title'=>'变动原因','value'=>$alterList[0]['ALTERCAUSE'] ])}
                    {if $alterList[0]['ALTERTYPE_ID'] == '02'}
                    {:form('text',['title'=>'变动前价值','value'=>$alterList[0]['PRICE_BEF'] ])}
                    {:form('text',['title'=>'变动价值','value'=>$alterList[0]['PRICE_AFT'] ])}
                    {/if}
                    {if $alterList[0]['ALTERTYPE_ID'] == '05'}
                    {:form('text',['title'=>'变动前部门ID','value'=>$alterList[0]['DEPARTID_BEF'] ])}
                    {:form('text',['title'=>'变动前部门','value'=>$alterList[0]['DEPARTNAME_BEF'] ])}
                    {:form('text',['title'=>'变动后部门ID','value'=>$alterList[0]['DEPARTID_AFT'] ])}
                    {:form('text',['title'=>'变动后部门','value'=>$alterList[0]['DEPARTNAME_AFT'] ])}
                    {/if}
                    {if $alterList[0]['ALTERTYPE_ID'] == '99'}
                    {:form('text',['title'=>'报废处理方式','value'=>$alterList[0]['DISPOSE'] ])}
                    {:form('text',['title'=>'处理单据号','value'=>$alterList[0]['DISPOSE_RECNO'] ])}
                    {:form('text',['title'=>'处理价格','value'=>$alterList[0]['DISPOSE_PRICE'] ])}
                    {/if}
                    {:form('text',['title'=>'备注','value'=>$alterList[0]['COMMENTS'] ])}
                    {:form('text',['title'=>'备注','value'=>$alterList[0]['IS_AUDIT']='1'?'已审核':'未审核' ])}
                    {:line()}
                    {:form('text',['title'=>'制单人','disable'=>'disabled','value'=>$alterList[0]['OPER_NAME'] ])}
                    {:form('text',['title'=>'制单时间','disable'=>'disabled','value'=>$alterList[0]['INPUTDATE'] ])}
                </form>
            </div>
        </div>

    </div>
</div>

<script>

</script>